package com.tencent.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tencent.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface LoginMapper extends BaseMapper<User> {

    /**
     * @Description: TODO 根据用户名查memberId
     * @author Yangjx
     * @date 2022/9/1 18:36
     * @param username
     * @return Integer memberId
     */
    @Select("select memberId from t_user where username=#{username}")
    Integer findIdByUsername(String username);
}
